<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title><?php echo $title;?></title>
<link href="<?php echo base_url(); ?>assets/public/css/reset.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>assets/public/css/style.css" media="screen" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="css/ie.css" media="screen" rel="stylesheet" type="text/css">
<![endif]-->
<?php 
foreach($css_files as $file): ?>
	<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/public/js/jquery-1.4.4.min.js"></script>
<?php foreach($js_files as $file): ?>
<script type="text/javascript" src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/public/js/jquery-tipsy.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/public/js/jquery-custom.js"></script>
</head>
<body>
<div class="shadow"></div>
<!-- .shadow -->
<?php $this->load->view("common/header_view"); ?>
 <?php $this->load->view("common/sidebar_view",$sb);?>
<!-- BEGIN CONTENT -->
<div id="content">
    <div class="box-out">
    	<div class="box-in">
    		<div class="box-head"><h1><?php echo $content_title;?></h1></div>
                <div class="box-content" id="personnel_content" style="min-height: 300px">
                    <!--*********************Layout content********************************-->
                    <div class="form">
                        <fieldset>
                            <legend>Báo cáo công việc</legend>
                            <p><?php echo $check_re; ?></p>
                            Đã hoàn thành <input type="text" id="pc" class=" text" value="<?php echo $percent; ?>"/>(%)
                            <br/>Chi phí <input type="text" id="cost" class=" text" value="<?php echo $costonreality; ?>"/>
                            <br/> <input class="submit" type="button" id="btnrep" value="Báo cáo" />
                            <script>
                                $('#btnrep').click(function(){
                                    $.ajax({
                                    url: <?php echo "'".  base_url()."works/report/"."'";?>+<?php echo $workid ?>+'/'+$('#pc').val()+'/'+$('#cost').val(),
                                    type:'POST',
                                    dataType: 'json',
                                    success: function(output_string){
                                           alert(output_string);
                                           window.location.reload(true);
                                    } 
                                    });//End ajax
                                });
                            </script>
                        </fieldset>
                        <div style="padding: 15px 0px">
                             <?php echo $evm; ?>
                        </div>
                    </div>   
                </div>
        </div>
    </div>
</div>
<!--- END CONTENT --->

</body>
</html>
